package org.file_service.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.file_service.entity.*;
import org.file_service.model.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface HistoryMapper {

    int maxHistoryId();

    int addRecord(String operator, int times, String proportion, int userId);

    List<History> allRecord();

    List<Two> two(Integer userId,Integer historyId);

    List<Three> getThree(Integer userId, Integer historyId);

    List<Four> getFour(Integer userId, Integer historyId);

    List<FiveSix> getFive(Integer userId,Integer historyId);

    List<Seven> seven(Integer userId, Integer historyId);

    List<Eight> eight1(Integer userId, Integer historyId);

    List<Eight> eight2(Integer userId, Integer historyId,String house_time);

    List<Huxing> huxingDistributionAndPrice(int historyId);

    List<MonthPrice> getMonthAndPrice(int historyId);

    List<ChaEr> getChaerPrice(@Param("historyid") int id);
}
